/* Conectra Catalog - DARK */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #eaeaea;
  padding: 30px 28px 50px;
  line-height: 1.4;
  background-color: #121212;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.05) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(120,180,255,0.06) 0, transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 12px);
  background-attachment: fixed; 
 
}
h1.page-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(120,180,255,0.35);
  margin: 0 0 40px;
  padding-bottom: 18px;
  border-bottom: 2px solid #3a3a3a;
}
.folder {
  margin: 0 auto 55px;
  max-width: none;
  text-align: center;
}
.folder h2 {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3a3a3a;
  text-align: center;
  color: #fff;
}
.heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 0 0 28px;
}
.hero {
  width: 520px;
  text-align: center;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.55);
}
.hero img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  display: block;
  background: #0d0d0d;
  border-radius: 6px;
}
.hero .cap {
  font-size: 14px;
  color: #a8a8a8;
  margin-top: 8px;
  word-break: break-word;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.card {
  width: 260px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.7);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.card .cap {
  font-size: 13px;
  color: #a8a8a8;
  margin-top: 6px;
  word-break: break-word;
}
/* Lightbox */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 30px;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  cursor: default;
  background: #111;
}
.lb-close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 34px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 18px;
  opacity: 0.6;
  user-select: none;
}
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ddd;
  font-size: 13px;
  pointer-events: none;
}
@page {
  size: A4 portrait;
  margin: 15mm 10mm 15mm 10mm;
}
@media print {
  body {
    color: #eaeaea;
    padding: 0;
    background-color: #121212 important;
    background-image:
      radial-gradient(circle at 20% 15%, rgba(255,255,255,0.05) 0, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(120,180,255,0.06) 0, transparent 45%),
      repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 10px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 12px) important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  h1.page-title { font-size: 26pt; margin-bottom: 8mm; border-color: #3a3a3a; }
  .folder { margin-bottom: 7mm; }
  .folder h2 { font-size: 16pt; margin-bottom: 4mm; border-color: #3a3a3a; }
  .heroes { gap: 4mm; margin-bottom: 5mm; }
  .hero { width: 77mm; padding: 2mm; page-break-inside: avoid; background: #1c1c1c; border-color: #333; }
  .hero img { height: auto; max-height: 110mm; background: #0d0d0d; }
  .gallery { gap: 4mm; }
  .card { width: 23mm; padding: 1.5mm; page-break-inside: avoid; background: #1c1c1c; border-color: #333; }
  .card img { height: auto; max-height: 34mm; }
  .hero .cap { font-size: 10pt; color: #b8b8b8; }
  .card .cap { font-size: 7pt; color: #b8b8b8; }
  .lb-overlay { display: none important; }
}
/* =========================================================
   RESPONSIVE MOBILE GALLERY
   3 columns portrait → more columns on wider screens
   ========================================================= */

/* Narrow phones */
@media screen and (max-width: 479px) {

  .gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .gallery .card {
    width: calc((100% - 12px) / 3) !important;
    max-width: calc((100% - 12px) / 3) !important;
    flex: 0 0 calc((100% - 12px) / 3) !important;
    margin: 0 !important;
    padding: 3px !important;
  }

  .gallery .card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  .gallery .card .cap {
    font-size: 9px !important;
    margin-top: 3px !important;
    line-height: 1.15 !important;
  }
}


/* Wider phones / landscape */
@media screen and (min-width: 480px) and (max-width: 767px) {

  .gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 7px !important;
  }

  .gallery .card {
    width: calc((100% - 21px) / 4) !important;
    max-width: calc((100% - 21px) / 4) !important;
    flex: 0 0 calc((100% - 21px) / 4) !important;
    margin: 0 !important;
    padding: 3px !important;
  }

  .gallery .card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  .gallery .card .cap {
    font-size: 9px !important;
    margin-top: 3px !important;
    line-height: 1.15 !important;
  }
}


/* Small tablets */
@media screen and (min-width: 768px) and (max-width: 1023px) {

  .gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .gallery .card {
    width: calc((100% - 40px) / 5) !important;
    max-width: calc((100% - 40px) / 5) !important;
    flex: 0 0 calc((100% - 40px) / 5) !important;
  }
}

